home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 15
/
015.d81
/
computer tips
< prev
next >
Wrap
Text File
|
2022-08-26
|
2KB
|
131 lines
COMPUTER TIPS
From: Hautzenroeder 79756
I recently had a severe problem with
my 1541 disk drive which others may
experience. The problem I had was
that my 1541 would load programs and
read and write sequential files with
no problems, but if I were to save a
long program or format a disk, I would
start to experience READ/WRITE
problems. Two trips to the nearby
service center did not cure the
problem. Even when the service
technician showed me there were no
problems with the 1541 at the shop,
the same problem re-appeared the
moment I got home. Switching circuit
boards with another 1541 did not cure
the problem nor did adding a surge
protector. What I finally did was to
remove the 1541's cover and metal
shield and the problem disappeared!!
What happened was the wires going from
the READ/WRITE head to the circuit
board had a ground wire that was
touching the metal shield that covers
the circuit board. Insulating this
ground wire from the shield
permanently cured my problem.
- - - - - - - - - - - - - - - - - - -
From: Kober 75831
READING THE C-64 JOYSTICKS
{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}
Here are several short statements
that allow reading the joysticks from
BASIC.
J1 = Joystick in Port #1
J2 = Joystick in Port #2
F1 = Firebutton in Port #1
F2 = Firebutton in Port #2
{SHIFT-*} {SHIFT-*} {SHIFT-*} {SHIFT-*} {SHIFT-*} {SHIFT-*} {SHIFT-*} {SHIFT-*} {SHIFT-*} {SHIFT-*} {SHIFT-*} {SHIFT-*} {SHIFT-*}
J1=NOT PEEK(56321) AND 15
J2=NOT PEEK(56320) AND 15
The number listed below will be
returned in J1, or J2 for the position
shown:
POSITION NUMBER
{$e3}{$e3}{$e3}{$e3}{$e3}{$e3}{$e3}{$e3}{$e3}{$e3} {$e3}{$e3}{$e3}{$e3}{$e3}{$e3}{$e3}{$e3}
up --------------- 1
down -------------- 2
left -------------- 4
right ------------- 8
up-right ----------- 9
up-left ------------ 5
down-right ---------- 10
down-left ----------- 6
center ------------- 0
(Numbers 3 and 7 are not used)
{SHIFT-*} {SHIFT-*} {SHIFT-*} {SHIFT-*} {SHIFT-*} {SHIFT-*} {SHIFT-*} {SHIFT-*} {SHIFT-*} {SHIFT-*} {SHIFT-*} {SHIFT-*} {SHIFT-*}
F1=(NOT PEEK(56321) AND 16)/16
F2=(NOT PEEK(56320) AND 16)/16
These will return a 1 if the button
is pressed, and a 0 if not.
Reading the joysticks and
firebuttons isn't the easiest thing to
understand. That's why I figured this
out and wrote it down. Maybe someone
else can benefit from this
information.
---------< end of article >-----------